package com.spring.factory;

import com.spring.pojo.Person;

/**
 * 演示实例工厂类
 */
public class InstanceFactory {
    // 需要提供应给非静态方法
    public Person getPerson(){
        return new Person("王五", 28, "男");
    }
}
